Scheme to Calculate Core Hole-Electron Interactions in Solids