MHD stability of advanced tokamak scenarios