The Effect of Weak Confinement on the Orientation of Nanorods under Shear Flows