Method and circuit for measuring characteristic parameters of intermodulation distortion