A predictive model of gene expression reveals the role of regulatory motifs in the mating response of yeast