The former French president Nicolas Sarkozy has been sentenced to five years in prison after being found guilty for criminal conspiracy over illegal campaign funding from Libya's Muammar Gaddafi.