Optimal Network Slicing for Service-Oriented Networks With Flexible Routing and Guaranteed E2E Latency