Optimizing the p-contact of nip substrate solar cell