Function of stomata in photosynthesis