A simple model of reaction induced cracking applied to serpentinization and carbonation of peridotite