NASA ranks 2017 the second-hottest year on Earth