THERMODYNAMIC AND STRUCTURAL ASPECTS OF THE DEHYDRATION OF SMECTITES IN SEDIMENTARY ROCKS