When did Valencia surrender