Characterization of solid acids by spectroscopy