Power Grid Failure Detection Based on Voltage and Frequency Variance Detect