Alteration and restoration of K+ channel function by deletions at the N- and C-termini