The origins of the Catalonia crisis