Time-domain reflectometer for telephone line analysis