Cosmic‐ray‐produced electrons and gamma rays in the atmosphere