Optimal orientations of strong products of paths