Targeted medication delivery using magnetic nanostructures