Minimal and optimal mechanisms for GroE-mediated protein folding.