Photoelectrochemical Determination of the Flatband Potential of Boron‐Doped Diamond