Weinstein Co. to file for bankruptcy after $500-million deal collapses