A Plan-Based Dialogue Model Using a Discourse Stack for Intelligent Human-Robot Interface Development