A two-dimensional model of leaf gas exchange with special reference to leaf anatomy