An optimized structure for CdTe solar cells