How to prepare solar cells