Design, construction and tests of the ICARUS T600 detector