A fuzzy approach to data aggregation to reduce power consumption in wireless sensor networks