Two Nigerian expatriates have been sentenced to 10 years in jail by a Doha criminal court for trading in illicit drugs.