A facile synthesis of nano-layer structured g-C3N4 with efficient organic degradation and hydrogen evolution using a MDN energetic material as the starting precursor