Simulation of the intergranular magnetization of (Bi,Pb)2Sr2Ca2Cu3O10+x superconductors by using Josephson junction arrays