The Effect of Concentration Gradients of Impurities on the Temperature Dependence of the Spin—Lattice Relaxation Time in Lithium and Beryllium