On-Chip, Single-Shot Characterization of GHz-Rate Complex Optical Signals