Design of the plasma control system in KSTAR