A dynamic model for nozzle clog monitoring in fused deposition modelling