Optoelectronics and Spintronics in Smart Thin Films