Influence of exchange and polarization on the elastic scattering of slow electrons from rare gases and mercury