Role of anion doping on electronic structure and magnetism of GdN by first principles calculations