Automatic Energy-aware Performance Analysis of Mobile Ad-hoc Networks