Accelerator based synthesis of hydroxyapatite by MeV ion implantation