Structural, electronic and optical properties of Ru2Si3, Ru2Ge3, Os2Si3 and Os2Ge3