Visualization of nanocrystalline CuO in the grain boundaries of Cu2O thin films and effect on band bending and film resistivity