In situ characterization of semiconductor—liquid junctions: surface optimization of n-CuInSe2