Electrical characterization of Cu(In, Ga)Se2 thin-film solar cells and the role of defects for the device performance