AMAC-LW: Adaptive medium access control for long range wide area network with energy-aware routing (International Journal of Electrical and Computer Engineering, 2026)