Design and performance of a 35-ton liquid argon time projection chamber as a prototype for future very large detectors