The effects of varying depth in cosmic shear surveys