Determination of the critical micelle concentration in simulations of surfactant systems.