Ab-initio analysis of structural, electronic, and optical properties of a-Si:H