Two-dimensional single-valley exciton qubit and optical spin magnetization generation