Optimization studies of cadmium selenide solar cells