Optimization of water uptake and photosynthetic parameters in an ecosystem model using tower flux data