Gossip Sensor Networks for Power Quality Monitoring in Smart Grids