Transformation of the effective rotational Hamiltonian of nonrigid X2Y molecules