Thousands protest in Madrid over Catalan amnesty