Ligand-mediated structural dynamics of a mammalian pancreatic KATP channel