Time-domain reflectometer