Wave Energy Converter Array Optimization: Algorithm Development and Investigation of Layout Design Influences