Origin of Enhanced Photocatalytic Activity in Direct Band Gap g-C3N4 Nanoribbons with Tunable Electronic Properties for Water-Splitting Reaction: A First-Principles Study