Modeling and Simulation of 5G-based Edge Networks for Lightweight Machine Learning Applications