Effective dipole moment of rotational transitions of X2Y molecules