Dark and gray solitons in nematic liquid crystals