Inter Milan complete the permanent signing of Manchester United forward Alexis Sanchez on a three-year deal.