Resistive transition process in granular superconducting MgB2 films by analysis and simulation of the generated current noise