Using the Barkhausen Effect to Measure the Microstructure of Ferromagnetic Materials