Optical second harmonic generation in ammonium malate