Text this: Generalised circuits theory of electrical machines