Newcastle United have completed the signing of Amar Dedic from Benfica for £29.5m, with the 24-year-old right-back becoming the club's sixth addition of the summer.