Analytic ab initio calculations of Coherent anti-Stokes Raman Scattering (CARS)