A Routing Protocol Based on Energy Aware in Ad Hoc Networks