Wireless relay networks: deterministic modeling and capacity approximation