Update demag.go

Enable optional calculation of demagnetizing tensor as prescribed by Newell et al.