Cooperative mechanism of energy transfer in heme-copper oxidases