Magnetic anisotropy in Pr2(Fe1−xCox)14B compounds