Optimizing the Band Structure of Crystalline Potassium Poly(heptazine imide) for Enhanced Photocatalytic H2O2 Production and Pollutant Degradation