Switching Colloidal Superstructures by Critical Casimir Forces