Ac Stark splitting of two-photon spectra