Synthetic photonic lattice for single-shot reconstruction of frequency combs