Functional Thin Films and Nanostructures for Sensors: Synthesis, Physics and Applications