Generalised treatment on single-phase motors with the aid of a digital computer