Discuss the theoretical principles of traffic engineering, including traffic flow theory, capacity analysis, and the design of transportation networks to optimize efficiency and safety.