Control of the nuclear spin of the 129Xe and 131Xe isotopes in the spin-exchange interaction with 87Rb atoms