Multilayer sol–gel coatings for corrosion protection of magnesium