Cytochrome oxidase evolved by tinkering with denitrification enzymes