Shear as a source of inhomogeneity in general relativistic stellar models