Single-photon characterization by two-photon spectral interferometry.