Size effects of cocatalysts in photoelectrochemical and photocatalytic water splitting