Effect of the polarization of counterpropagating light waves on nonlinear resonances of the electromagnetically induced transparency and absorption in the Hanle configuration