Efficient Second Harmonic Distortion Calculation Of Bmi