Changes in laser-induced thermoelastic effects depending on the position of an absorbing layer in indirect laser stimulation