Ecuador ex-president convicted on corruption charges