Numerical Analysis of an Oscillating-Wing Wind and Hydropower Generator