How did warlord-era China manage to defend against Japan (and their puppets)?