Construction of a phasor measurement unit (PMU) for power system applications