What are the functions of the stomata?