Frequency doubling with potassium niobate in an external cavity