Text this: Application of the similarity theory to analysis of photocatalytic hydrogen production and photocurrent generation