The shaping effect of cross section on ballooning modes in tokamak plasmas. (4th February 2015)