Spain takes control of Catalonia