Collapse precedes folding in denaturant-dependent assembly of ubiquitin