Laser beam deflection as a probe of laser ablation of materials