A cooperative switch within the KaiC hexamer revealed by cryo-EM