SMS dit: Attosecond sampling of arbitrary optical waveforms