Valencia have beaten West Ham to the signing of striker Maxi Gomez, with the Uruguayan international switching from fellow La…