Characterization of thermal damage in sandstone using the second harmonic generation of standing waves