The role of edges and line-ends in illusory contour formation