The Use of Shock-Fitting Techniques to Simulate Discontinuities in Transonic and Supersonic Flows