Transportation systems with connected and non-connected vehicles: Optimal traffic control