Optical second harmonic generation