how to make a generator with dc motor