The Escape of Light Gases from Planetary Atmospheres