Gravar-mail: Battery lifetime estimation for LoRaWAN communications