A two-step method combining electrodepositing and spin-coating for solar cell processing