Gravar-mail: Stepwise helix formation and chain compaction during protein folding