A gas-exchange system for measuring the productivity of plant populations in controlled environments