Primary cosmic rays and trapped radiation as the sources of the positron fluxes in the earth's vicinity