Maximum likelihood estimation of an extended latent Markov model for clustered binary panel data