Modeling of thin-film Cu(In,Ga)Se2 solar cells