MaxQ monitoring and control with parameter optimization for WAAM Welding and repair