Managing mangroves for resilience to climate change