Methods of patterning magnetic thin films with block copolymer templating