A dynamic inhomogeneous latent state model for measuring material deprivation