Structure and evolution of transcriptional regulatory networks