Electronic and optical properties of isostructural beta-FeSi2 and OsSi2