Upscaling and spatial localization of non-local energies with applications to crystal plasticity