The elastic, electronic, and optical properties of PtSi and PtGe compounds