Microstructure Evolution and Its Correlation with Performance in Nitrogen-Containing Porous Carbon Prepared by Polypyrrole Carbonization: Insights from Hybrid Calculations