Scientists achieve major breakthrough in thin-film magnetism