A conservative strategy to couple 1D and 2D models for shallow water flow simulation