A barrier model for ZnO varistors