Birefringence phase-matched direct third-harmonic generation in a ridge optical waveguide based on a KTiOPO4 single crystal.