Multifunctional PECVD Layers: Dopant Source, Passivation, and Optics