Microstructure and crystallinity in hydroxyapatite coatings