Porous carbon as a quasi-reference electrode in aqueous electrolytes