Thin films of ferroelectrics made by pulsed laser deposition for optoelectronic applications