Automatic production planning for the construction of complex ships