Dipole and non-dipole excitation in collisions of low energy electrons with diatomic molecules