A comparative study of plasma parameters and gas phase compositions in Cl2 and HCl direct current glow discharges