A theoretical model for the front region of cadmium telluride solar cells