Electrical and optical characterization of GdSi2 and ErSi2 alloy thin films