Numerical modeling of heating and current-sharing effects on I-V curves of Y1Ba2Cu3O7 and MgB2 conductors