Diagonalization of the infinite q-boson system