Development of corrosion resistant coatings for Mg alloys and a general corrosion fatigue model