Wire-arc directed energy deposition of magnesium alloys: microstructure, properties and quality optimization strategies