Modeling the ionizing radiation environment in Earth's atmosphere