Analysis and optimisation of window layers for thin film CDTE solar cells