Electrode/electrolyte interfaces in (photo-)electrochemical devices