Modeling residual porosity in thick components consolidated by spark plasma sintering