Nature and densities of gap states in a-Si:H and a-SiC:H obtained from the quantitative analysis of photoconductivity