Fabrication and X-ray diffraction studies of Er/C multilayer films