With whom did Valencia side in the War of Spanish Succession