Structural investigation of a-Si and a-Si:H using the X-ray absorption spectroscopy at the Si K-edge