Functional failure sequences in traffic accidents