Synthesis and characterization of mixed rare earth oxycarbonates and oxides for optical application