The fallout over Catalonia's declaration of independence from Spain has led to eight former Catalan cabinet members being sent to jail.