Design of a laser control system with continuously variable power and its application in additive manufacturing