Circuit arrangements for ac mains or ac distribution networks for connecting networks of the same frequency but supplied from different sources