Magnetic pair production in Cygnus X-3 and a cut off in the γ-ray spectrum