Improvements to MagParameters

* Allow specification of easy axis

* Allow applied field to be a function

* Specify K1 instead of Hk (and calculate Hk from K1)
Add some more example residuals