Structure-property insights into foam-forming processing of lignocellulosic materials