Oxygen reduction reaction at porphyrin-based electrochemical catalysts: Mechanistic effects of pH and spin states studied by density functional theory