Fishing for or freeing objects in boreholes or wells using impact means for releasing stuck parts, e.g. jars