The ALICE transition radiation detector: Construction, operation, and performance