Phase dependence of the unnormalized second-order photon correlation function