A multireference coupled-cluster approach to quantum dynamics