Magnetic Force Microscopy Characterization of Magnetic Nanowires and Nanotubes