Structure of a bacterial light-regulated adenylyl cylcase