Preparation and characterization of thermally stable nanohydroxyapatite