Linear, self-referenced technique for single-shot and real-time full characterization of (sub-)picosecond optical pulses