Modeling Energy Consumption of dual-hop Relay based MAC Protocols in Ad Hoc Networks