J.R. Smith set to return to Knicks as details of four-year contract are hammered out 