A decay of the ultra-high-energy neutrino ν e → e − W + in a magnetic field and its influence on the shape of the neutrino spectrum