Catalonia formally declared independence from Spain and immediately lost all autonomy