Magnetic assembly and patterning of general nanoscale materials through nonmagnetic templates.