Waveform Design for Over-the-Air Computing under Sampling Error