Preparation and characterization of metal oxide semiconductor thin films for solar cell and sensor devices