Magnetic-field-assisted electrodeposition of metal to obtain conically structured ferromagnetic layers