How economic trauma, the migration crisis and dissatisfaction with traditional parties are shaking western democracies.