Optimization of the Dimensions of a Gravity-based Wave Energy Converter Foundation Based on Heave and Surge Forces