A 3-dimensional calculation of the atmospheric neutrino fluxes