How to investigate when a robot causes an accident