In both the photoelectric effect and the Compton effect, a photon collides with an electron causing the electron to fly off. What is the difference between the two processes?