Tunisian president appoints ex-PM as political adviser