Comparison of the performance of various gradient-corrected exchange and correlation functionals in density functional theory: Case studies of CO and N2O molecules