The largest great ape to ever live went extinct because of climate change, study finds