A Framework for Throughput and Energy Efficiency in Mobile ad Hoc Networks