The dependence of electron impact excitation and ionization cross sections of H2 and D2 molecules on vibrational qunatum number