West Ham striker Lucas Perez to join Alaves