Mechanisms of the multiphasic kinetics in the folding and unfolding of globular proteins