Spanish train crash driver appears in court