A control design framework for wave energy devices