Reconstruction of gene innovation associated with major evolutionary transitions in the kingdom Fungi