carl sagan was a writer and a scientist