The influence of phase fluctuations and phase modulation on two-photon fluorescence