Functional thin films for high-efficiency solar cells by