On the use of rigid body modes in the deflated preconditioned conjugate gradient method