Simulating carbon dioxide exchange in boreal ecosystems flooded by reservoirs