Carbonate mineral dissolution and photosynthesis-induced precipitation regulate inorganic carbon cycling along the karst river-reservoir continuum, SW China