Magnetocrystalline anisotropy of Pr2(Fe1−xCox)17−yGay compounds with a Th2Zn17-type structure