Constraining the Cosmological Parameters and Transition Redshift with Gamma-Ray Bursts and Supernovae