Characterizing intermediates in protein folding