In situfabrication of hierarchically porous g-C3N4 and understanding on its enhanced photocatalytic activity based on energy absorption