In situ correlation between the optical and electrical properties of thin intrinsic and n-type microcrystalline silicon films