Design and fabrication of magnetically responsive nanocarriers for drug delivery