Understanding the function of bacterial and eukaryotic thiolases II by integrating evolutionary and functional approaches