A numerical approach to the diagnostics of electrical distribution networks