Electrical characterization at the nanoscale of Si-based thin films for photovoltaic applications