how will you explain the operation of a simple electric generator?