how to turn an alternator into a generator