Maximizing lifetime in wireless sensor networks with multiple sensor families