Nongravitational decay of cosmic strings