II–VI compound thin films for windows in heterojunction solar cells