Electrochemistry and photoelectrochemistry of pillared-clay-modified electrodes