Molecular mechanism of cyclic-nucleotide-gated channel activation