Patterning of magnetic thin films and multilayers using nanostructured tantalum gettering templates.