Grid Synchronization Fail Detection on Sensing Frequency or Voltage Beyond Range