Algerian ex-minister gets 7-year sentence