Automatic Measurement of Pearlite Spacing by Spectral Analysis