Bifurcation analysis of the rigid rod model for nematic polymers in shear flows