Analytical description of photon beam phase spaces in inverse Compton scattering sources