Evolutionary change in the functional specificity of genes