6. Explain the process by which ion channels generate action potentials.