magnetostatic energy