Preparation of polycrystalline rare earth orthoferrites and garnets via hydroxide precipitation