the working principle for an alternator is faraday's law