Preparation and characterization of spin-coated SnO, in O and in O:SN thin films for solar cell development