std5c 3D version
fix factor 1/4 in cubic anisotropy energy