The pivotal role of defects in fabrication of polymeric carbon nitride homojunctions with enhanced photocatalytic hydrogen evolution.