In situ combined analysis of gases and electrochemical signals of an activated carbon-based supercapacitor at 2.7–4 V