Multiscale approach for modeling electron spectra induced by photons from solids. (21st December 2015)