Ferroelectric Thin-Film Waveguides in Integrated Optics and Optoelectronics