Text this: Microstructural transformations of swelling clay minerals