Text this: Key node decision algorithm based on local information and energy factor in wireless sensor network