Real-Time Closed-Loop Control of Microstructure and Geometry in Laser Materials Processing