Nanoscale spatially-resolved characterization of photovoltaic devices and materials