A microstructure-based constitutive law for snow