Adsorption of CO, NH3, NO, and NO2 on pristine and defective g-GaN: Improved gas sensing and functionalization