Recent advances in the synthesis, functionalization and biomedical applications of hydroxyapatite: a review