Spectroscopy as a tool for studying swelling soils