Definition for gain margin and phase margin of control system