Shape optimization of a breakwater