Localization and coherent scattering of electrons