Coherent acoustic perturbation of second-harmonic generation in NiO