endPoint function

Detects when the laser ablates through the target sample in a laser ablation mass spectrometry time resolved analysis.