iPhone maker Foxconn apologizes after mass protests at Chinese plant