MFM imaging of nanowires and elongated patterned elements