Spain finances $400 million Turkish railway project