Countries agree regulations for automated driving