Enhancement of the deposition processes of Cu(In,Ga)Se2 and Cds thin films via in-situ and ex-situ measurements for solar cell application