Energy-aware Algorithm for Mobile Sensor Networks Using Cellular Automata