Testing (modified) gravity with 3D and tomographic cosmic shear