Designing carbon materials for the electrochemical synthesis of hydrogen peroxide and other advanced applications