Optical modeling and characterization of hydrogenated amorphous silicon solar cells