Nanocomposite Thin Films for both Mechanical and Functional Applications