Mutualism–parasitism paradigm synthesized from results of root-endophyte models