Al–AlN composite coatings on AZ31 magnesium alloy for surface hardening and corrosion resistance