A mixture model for the evolution of gene expression in non-homogeneous datasets