Macky Sall defeats former mentor to lead Senegal