Soliton relaxation in magnets