Text this: State-of-charge estimation to improve energy conservation and extend battery life of wireless sensor network nodes