Sarkozy, former French president, condemned for three years for corruption and trafficking in influences