Synthesis and Characterization of Photoelectrochemical and Photovoltaic Cu2BaSnS4 Thin Films and Solar Cells