A method for measuring the spin polarization of 129Xe by using an atomic magnetometer