Cation effects in nanocrystalline solar cells