Room-temperature ferromagnetic nanotubes controlled by electron or hole doping