Precipitation and dissolution of reactive solutes in fractures