Synthesis and characterization of hydroxyapatite coatings for medical applications