what kind of generator produces an alternating current​