Functional evolution of Erg potassium channel gating reveals an ancient origin for IKr