CdS/CdTe solar cells with improved CdS films fabricated by the writing method