Spin-polarized oscillations and 100% spin polarization plateau in an InAs quantum dot subjected to terahertz irradiation and a magnetic field