A wireless event-based sensors network for power quality monitoring application