A method to improve the prediction of ship resistance in shallow water