Instructing a goy on Shabbos: When is it permitted?