Capacity-Bounded Grammars