Motion analysis and power output optimization design of wave energy device