Battery-aware energy model of drone delivery tasks