Magnetic anisotropy studies of permanent magnets