Efficient controls for traffic flow on networks