Fabric tensors and effective properties of granular materials with application to snow