Quantifying internal friction in unfolded and intrinsically disordered proteins with single-molecule spectroscopy