The retail giant is planning to lease 350,000 square feet of new space in the town west of Boston to grow its existing robotics operation there.