fix composite partial charge in triatomic molecule, so that it updates when molecular dipole changes