France formally repeals slavery-era 'Code Noir'