Particle size and support effects in electrocatalysis and photoelectrochemical water splitting