When Google opened for business in China in 2006, Eric E. Schmidt, its chief executive, said, “Google has 5,000 years of patience in China.” But its divorce from the country just four years later was inevitable because operations there were troubled from the start.