Mineral dissolution and precipitation