A Multiobjective Approach for Energy Consumption and Link Stability Issues in Ad Hoc Networks