Nanofabricated and self-assembled magnetic structures as data storage media