Calculation of ion currents from energy profiles and energy profiles from ion currents in multibarrier, multisite, multioccupancy channel model.