A closed loop quality control system for laser chemical machining