Self-driving cars to become a major challenge for legal systems