Temperature dependence of the spin-lattice interaction for Gd3+ in CaF2 and CdF2