Magnetic relaxation in pulse-magnetized high-temperature superconductors