Shock waves in one-dimensional Heisenberg ferromagnets