Quantum interference effects in two-photon spectroscopy