Energy changes in magnetic systems