Nanoparticle-modified coatings by electrophoretic deposition for corrosion protection of magnesium