Factors affecting stomatal opening and closing