Measurement of frequency sweep nonlinearity using atomic absorption spectroscopy