Optimization of nano-hydroxyapatite/poly(lactic-co-glycolic acid) coatings on magnesium substrates using one-step electrophoretic deposition