Electron impact excitation of H2 (D2). Resonance phenomena associated with the X 2Σu+ and B 2Σg+ states of H2- in the 10 eV region