Electronic, optical, and surface properties of PtSi thin films