Analysis and optimization of a tethered wave energy converter in irregular waves