Thermally dynamic examination of local order in nanocrystalline hydroxyapatite