FFT method for the modeling of anisotropic magnetic materials