Solution-produced copper iodide thin films for photosensor and for vertical thermoelectric nanogenerator, which uses a spontaneous temperature gradient