The collision, caused by the derailment of one of the trains, was the deadliest in Spain since at least 2013.