Theory of Photon Acceleration