Fast calculation of electrical transients in power systems after a change of topology