Structural insight into photoactivation of an adenylate cyclase from a photosynthetic cyanobacterium