Aerodynamic calibration of TCM2 facility and study of a bow shock layer by emission and laser spectroscopy