Soil analysis via FTIR spectroscopy