Optimum Control of Oscillation of Wave-Energy Converters