Defect-rich N-doped porous carbon derived from alginate by HNO3 etching combined with a hard template method for high-performance supercapacitors