Preparation and properties of sprayed CuGa0.5In0.5Se2 thin films