Dynamical equilibrium between excitons and free carriers in quantum wells