Structural and functional genomics of perennial ryegrass-derived fungal endophytes