Stomatal regulation and water economy in crassulacean acid metabolism plants: an optimization model