Multiscale modeling of lignocellulosic foams under compression