Analytical approach to continuous and intermittent bottleneck flows.