Fabrication of polyimide nanotubes and carbon nanotubes containing magnetic iron oxide in confinement.