Modelling the crystalline deformation of native and regenerated cellulose