Temperature-programmed dehydration of hydroxyapatite