A spatially heterogeneous network-based metapopulation software model applied to the simulation of a pulmonary tuberculosis infection