Vision-based control for track geometry optimization of complex AM motion profiles by on-line laser power modulation