Thin films and nanostructures