Stress development in shrinking slabs during drying