PayPal has bought iZettle, a Swedish mobile payments company that sells a card-reader aimed at small businesses, for $2.2bn (£1.6bn).