The trajectory of subboundary grooves during directional solidification of dilute alloys