Particle pairs in the cranked Hartree-Fock-Bogoliubov approximation and the interacting boson model