Evolution of herbicide resistance in weeds: vertically transmitted fungal endophytes as genetic entities