A novel method determining longitudinally induced magnetic anisotropy in amorphous and nanocrystalline soft materials