Optimization of the protocrystalline p -layer in a -Si:H-based n - i - p photodiodes