Low energy elastic scattering of electrons from H2 and N2