A Theoretical Framework of Ecological Phase Transitions for Characterizing Tree-Grass Dynamics