Chemo-mechanical degradation of geomaterials: modeling on a microscale