Context-based state estimation for hybrid systems with intermittent dynamics