Characterization of thin film CuGa0.5In0.5Se2 heterojunctions