General methodology for the optimization of the parameters of aggregated tunneling systems