Redox processes and the role of carbon-bearing volatiles from the slab-mantle interface to the mantle wedge