Sunderland and Italy winger Emanuele Giaccherini joins Napoli on a three-year deal for an undisclosed fee.