detect_telemetry_format function

Auto-detect telemetry format from file extension