X‐ray and γ‐ray emission from channeled relativistic electrons and positrons