Visualizing transient protein-folding intermediates by tryptophan-scanning mutagenesis