Gravar-mail: Prediction of battery depletion in implanted pacemakers