Structure and electronic states in a-Si:H thin films