Optical focus control for laser percussion drilling