comparison between an alternator and a generator