Exact solvability of the quantum Rabi model using Bogoliubov operators