Evolution of alternative transcriptional circuits with identical logic