The influence of flow confinement on the rheological properties of complex fluids