Diagenetic and shear-induced transitions of frictional strength of carbon-bearing faults and their implications for earthquake rupture dynamics in subduction zones