Terahertz waveform synthesis in integrated thin-film lithium niobate platform | Synapse