Magnetization energy of polycrystalline cubic materials