Proton transfer reactions in cytochrome oxidase