A coupled ecohydrological – three-dimensional unsaturated flow model describing energy, H2O and CO2 fluxes