Solar cell preparation method