Energy-Efficient Caching Strategies in Ad Hoc Wireless Networks