Ajax's Niklas Moisander has signed a three-year contract with Sampdoria, as confirmed by the club, and will join them next season.