Variational Learning in Mixed-State Dynamic Graphical Models