Influence of the p-type layer on the performance and stability of thin film silicon solar cells