Designing Novel Waveform and Learning-based Signal Processing Techniques for 6G THz Communication and Sensing