Attenuation length and escape depth of excited electrons in solids