Second harmonic generation at 399 nm resonant on the 1S0-1P1 transition of ytterbium using a periodically poled LiNbO3 waveguide.