Fabrication and Characterization of Thin Films for Heterojunction Solar Cells and Radiation Detectors