Modeling the role of serpentinization and deserpentinization in bending and unbending slabs