A model of plant transpiration and stomatal regulation under the condition of water stress