Ellipsa: a new technique for two-photon spectroscopy