Effects of the safety factor and the internal inductance on MHD activities and energy confinement in JT-60U