Nanostructured Hydroxyapatite Coatings for Improved Adhesion and Corrosion Resistance for Medical Implants