XPS investigation of a CdS-based photoresistor under working conditions: operando-XPS.