Cellular automata trust-based energy drainage attack detection and prevention in Wireless Sensor Networks