Variation of polymer-template pore geometry as a means of controlling the magnetic properties of metallic nanostructures