Spatio-temporal analysis with short- and long-memory dependence: a state-space approach