Spain may have succeeded in crushing Catalan independence dreams for now – but at a high price