A two-layer, shallow-water model for 3D gravity currents