Fungal evolution: major ecological adaptations and evolutionary transitions