Water-splitting systems