Hydroxyapatite gels and nanocrystals prepared through a sol–gel process