How to produce solar thin film batteries