Electron inelastic mean free paths for plasmon excitations and interband transitions