On-chip single-shot and real-time self-referenced phase characterization of GHz-rate telecommunication signals