Implementation and Testing of a Flicker Meter Using IEC 61850-9-2 Sampled Values