In aerobic respiration, the Kerbs cycle (citric acid cycle) takes place in