Latent Markov Models for Network Data