Spin-lattice relaxation of the nuclear dipolar energy and spin diffusion in NH4ClO4