Electron production in proton collisions with atoms and molecules: energy distributions