Third-harmonic generation by cascading second-order nonlinear processes in a cerium-doped KTiOPO4 crystal.