Passivation effect in solar cells