Optimal coordination of automated vehicles at intersections with turns