Circuit analysis of A-C power systems