Sweden beat Canada to win ice hockey world title