residual magnetism in generator