Hydroxyapatite powders and thin films prepared by a sol-gel technique