Quenching of internally ‘hot’ H2 and N2 gases by collisions with ultracold electrons: a computational ‘experiment’