Modelling of the Cosmic-Ray Induced Gamma-Ray Emission of the Earth's Atmosphere