Nicolas Sarkozy sentenced to prison in historic corruption trial