Calculation of voltage losses in DC and AC networks up to 35kV