Carbon dioxide sensor mechanism of porous hydroxyapatite ceramics