Nicolas Sarkozy is sentenced on appeal to prison