Driver detained as investigators probe Spain train crash; dozens hospitalized