Factors affecting thin film solar cells