Learning-based social coordination to improve safety and robustness of cooperative autonomous vehicles in mixed traffic