Deformation profiles and microscopic dynamics of complex fluids during oscillatory shear experiments