Cosmic Ray Induced Ion Production in the Atmosphere