Spain is set to impose direct rule over Catalonia, risking violent clashes and market turmoil