Towards fundamental understanding of interfaces in carbon nitride photocatalytic and (photo)electrochemical systems