Flexibly varying folding mechanism of a nearly symmetrical protein: B domain of protein A.