A universal strategy to obtain highly redox-active porous carbons for efficient energy storage