Electron excitation by channelled particles in a crystal