Text this: Synthesis, characterization and in vitro bioactivity of chitosan- hydroxyapatite composite doped with magnesium