Photoelectrochemical imaging—part I. Background and theory