Protection against swelling and shrinkage of soils