Electron impact excitation of 2p and 3p states of hydrogen at intermediate energies