Switching of a photochromic molecule on gold electrodes: single-molecule measurements