Homogenization of random anisotropy properties in polycrystalline magnetic materials