Turkey convicts ex-editor on 'terrorism' charges