When did Japan formally have signed the surrender?