Automatic Measurement of Preisach Distributions in Soft Magnetic Materials