Measuring the quantum state of a photon pair entangled in frequency and time