Effect of environmental and geometrical factors on microstructure, desiccation cracking, and carbon dioxide flux in clays