One-pot fabrication of magnetic nanocomposite microcapsules