Enhanced electronic and magnetic properties by functionalization of monolayer GaS via substitutional doping and adsorption