MHD stability analysis for advanced tokamak modes in the KSTAR device