An automatic system to study the responses of respiration and photosynthesis by submerged macrophytes to environmental variables