Financial optimization of investments in maritime structures