Effects of preorganization and hydrogen bonding on intramolecular chemical ligation of (N)-and (O)-acyl isopeptides