Measuring full complex dispersion of guided modes and surface waves in planar photonic structures