Magnetic anisotropy of transition-metal thin films.