Afghanistan to free all but 16 of 88 prisoners seen as threat by U.S.