Relationship between defect density and charge carrier transport in amorphous and microcrystalline silicon