Electron Compton scattering and its application to condensed matter phenomena