Optical properties of silicene, Si/Ag(111), and Si/Ag(110)