The nature of swelling in soils