Second and third harmonic generation optical assembly