The newly allied armies captured Beijing on June 6. Who did the Manchus struggle against