Global warming may cause permanent damage to coral reefs