Nonlinear waveform distortion and shock formation in the near field of a continuous wave piston source