Band-gap determination from diffuse reflectance measurements of semiconductor films, and application to photoelectrochemical water-splitting