Structural multiscale modelling of extrusion-based 3D and 4D printed materials