Distributed power quality measurement method