Solvent design assisted by mechanistic insights: methods and application to peptide synthesis