Second harmonic modulation in potassium niobate