understanding how wind energy can generate electricity