Macroporous nitrogen-containing carbon for electrochemical capacitors