Optimized technique for the calculation of carbon nanotube dispersion relationships