Former prime minister elected parliament speaker in Senegal