An energy-aware application module for the fog-based internet of military things