Micromagnetic energy barriers