Electrochemical and optical study of the confined aqueous layer adsorbed on gold electrodes cycled in phosphate and dodecylsulphate solutions