Coral reef ecosystems protect shore from high-energy waves under climate change scenarios