Single nanoflake photoelectrochemistry