Ambiguity Function Optimization Based on Joint Communication and Sensing Waveform (Electronics Letters, 2026)