Preparation and photoelectric properties of SnOx films with tunable optical bandgap