Extending network lifetime by exploiting wireless charging in WSNTH