Micromagnetic simulation using the dynamic alternating direction implicit method