Foxconn apologizes in bid to calm protests