Micelle density regulated by a reversible switch of protein secondary structure.