Automatic generation of statistical volume elements using multibody dynamics and an erosion-based homogenization method