Acidification and bubble template derived porous g-C3N4 for efficient photodegradation and hydrogen evolution