Why did Ferdinand feel comfortable withdrawing troops from the eastern front?