Conformational transitions in the regulation of cytochrome c oxidase activity