Throughput Optimization in Multi-hop Wireless Networks with Random Access