A peptide segment critical for sodium channel inactivation functions as an inactivation gate in a potassium channel