Foxconn’s four-year struggle to buy Sharp has ended—but the worst is yet to come