Influence of film thickness on optical and electrical properties of hydrogenated amorphous silicon