Reconstructing the past and modeling the future of wetland dynamics under climate change