Spin-lattice relaxation and the calculation of gain, pump power, and noise temperature in ruby