Understanding the Diversity of Planetary Atmospheres