Temperature dependence of ferromagnetic anisotropy energy in cubic crystals