Polarization and two-photon spectroscopy of xenon for optical magnetometry