Single-molecule studies provide mechanistic insights into the link between DNA repair and mutagenesis