Stacking of large interferometric data sets in the image- and uv-domain - a comparative study