Email Record: Intrusion tolerant routing with data consensus in wireless sensor networks