Connectivity Prediction in Mobile Ad Hoc Networks for Real-Time Control