Text this: Local detection of replay attacks and data anomalies on PMU measurements of smart power grids via tracking critical dynamic modes