Improvement of corrosion resistance of magnesium alloys by vapor deposition