Effects of Ga substitution in Y2Fe17 compounds on the magnetocrystalline anisotropy