Electronic Structure, Magnetic Properties and Magnetocaloric Effect of Gdco2-Xnix