Preparation and characterization of hydroxyapatite/titania nanocomposite coatings on titanium by electrophoretic deposition