The folding mechanism of c-type cytochromes