Photoelectrical and optical study of p-type a-Si:H used as a photoreceptor