Choosing the optimal climate change policy in the presence of catastrophic risk