Optimal internal boundary control of lane-free automated vehicle traffic