Common processes in aerobic and anaerobic respiration