Principles from community and metapopulation ecology: application to fungal entomopathogens