A comprehensive comparison of oxygen and nitrogen functionalities in carbon and their implications for the oxygen reduction reaction