Photon correlation effects in second harmonic generation