Community ecological succession of endophytic fungi associates with medicinal compound accumulation in Sophora alopecuroides