Ex-French president gets jail sentence over campaign funding