To avoid the well-known "end-point catastrophe" , a soft-core potential was used for van der Waals (vdW) interactions involving the perturbed atoms. The electrostatic interactions were linearly scaled but at a faster rate than the vdW interactions, so that the partial charges were removed for the disappearing atoms before they were fully annihilated, and were introduced on the appearing atoms after they already partially appeared.