Optimization of resistive load for a wave energy converter with linear generator power take off