Statistics for Optimal capacitor placement to minimise harmonics in power systems and software tools