An optical study of each layer in a-Si:H solar cells