Photoelectrochemical imaging of non-planar surfaces: the influence of geometrical and optical factors on image formation