Modelling to optimize the use of both water and nitrogen by the potato crop