The optical characterization of organometallic complex thin films by spectroscopic ellipsometry and photovoltaic diode application