Energy Minimization Transmission for Cache-Enabled Wireless Relay Networks