Mechanical design and simulation of an onshore four-bar wave energy converter