Spin-lattice relaxation time of Co2+ ion in yttrium aluminum garnet