Automated self-assembly and electrical characterization of nanostructured films