Effect of nonorthogonality of electronic wave functions on the approximate calculation of transition dipole moments