Analysis of the gating of single ion channels using current-voltage surfaces