In situ microemulsion synthesis of hydroxyapatite-MgFe2O4 nanocomposite as a magnetic drug delivery system