Synchronizing terahertz wave generation with attosecond bursts.