Universal Method for Compensation of SAW Diffraction and Other Second Order Effects