Newcastle United have announced the signing of striker Ayoze Perez from Tenerife on a long-term deal.