Coupled analysis of flow and surface ablation in carbon-carbon rocket nozzles