Does a generator generate DC or AC?